﻿<%@ Control Language="C#" AutoEventWireup="true"
	Inherits="System.Web.Mvc.ViewUserControl<gnodotnet.Web.Controllers.MailingList.RecipientsController.RecipientFormViewModel>" %>
<%@ Import Namespace="gnodotnet.Web.Controllers.MailingList" %>

<% using (Html.BeginForm<RecipientsController>(c=>c.Subscribe(null))) { %>
    <%= Html.AntiForgeryToken() %>
   <h4>Subscribe to our Mailing List</h4>
   Name: <%= Html.TextBox("Recipient.Name") %>
   Email: <%= Html.TextBox("Recipient.Email")%>
   <%= Html.Button("btnSubscribe", "Subscribe", HtmlButtonType.Submit) %>
<% } %>
